#ifndef _GCOMMON_H_
#define _GCOMMON_H_
#include "stdio.h"
#include "time.h"

typedef enum _gini_logLevel{
    GLOG_DEBUG=0,
    GLOG_WARN=1,
    GLOG_ERROR=2
}gini_logLevel;

#define gini_Log(fmt, args...) \
		do{ \
            time_t xx=time(0); \
            struct tm * ct=gmtime(&xx);\
            char cutime[32]={'\0'}; \
            sprintf(cutime,"%04d-%02d-%02d %02d:%02d:%02d",ct->tm_year+1900,ct->tm_mon,ct->tm_mday,ct->tm_hour,ct->tm_min,ct->tm_sec); \
			fprintf(stdout,"[%s]%s-%s()-%d: "fmt"\n",cutime,__FILE__, __FUNCTION__,__LINE__, ##args); \
		}while(0);

#endif
